package com.lyf.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * @author hailin.
 * @date 2020/9/8 17:33
 **/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface CacheRefresh {
    //缓存前缀
    String value() default "";
    //缓存有效期
    long expire() default 0l;
    //刷新时间点
    long refresh() default 0l;
}
